//1.引入echarts提供的所有方法 放在$echarts上
import * as $echarts from "echarts";
//2.引入vue-echarts，暴露出一个组件，我们一会需要进行全局注册
import vueEcharts from "vue-echarts";
//引入App的类型
import type { App } from "vue";


//定义一个插件
const VueEcharts = (app: App) => {
  app.component("v-chart", vueEcharts);
};

//暴露
export { VueEcharts, $echarts };
